<?php

$config = require_once '../../config.php';
$redis = new Redis();
$redis->connect($config['redis_ip'], $config['redis_port']);//ip端口
$redis->auth($config['redis_auth']);//密码

return $redis;